import { axios } from './request'

// post
export function postAction(url, data, responseType) {
  console.log(data)
  return axios({
    url,
    method: 'post',
    responseType,
    data
  })
}

// put
export function putAction(url, data) {
  return axios({
    url,
    method: 'put',
    data
  })
}

// get
export function getAction(url, params) {
  return axios({
    url,
    method: 'get',
    params
  })
}

// deleteAction
export function deleteAction(url, params) {
  return axios({
    url,
    method: 'delete',
    params
  })
}
